/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 新的色彩方案 - 基于参考图片的可爱风格 */
:root {
    --primary-pink: #FF7EB9;
    --primary-purple: #A78BFA;
    --primary-yellow: #FBBF24;
    --primary-green: #34D399;
    --primary-blue: #60A5FA;
    --bg-light: #FCFCFD;
    --text-dark: #1F2937;
    --text-light: #6B7280;
}

/* 工具卡片样式 */
.tool-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    background-color: white;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 状态标签样式 */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* 搜索栏样式 */
.search-bar {
    border-radius: 16px;
    padding: 0.75rem 1rem;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-bar:focus-within {
    background-color: white;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 126, 185, 0.1);
}

/* 工具图标样式 */
.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* 骨架屏样式 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 模态框样式 */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B5CF6;
}

/* 自定义开关按钮 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-pink);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* 工具类别样式 */
.category-item {
    transition: all 0.2s ease;
    border-radius: 12px;
    padding: 8px;
}

.category-item:active {
    background-color: #F9FAFB;
    transform: scale(0.98);
}

/* 表单输入框样式 */
.form-input {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 126, 185, 0.1);
}

/* 卡片阴影样式 */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-pink);
    color: white;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #F472B6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(255, 126, 185, 0.3);
}

.btn-secondary {
    background-color: var(--primary-purple);
    color: white;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #8B5CF6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(167, 139, 250, 0.3);
}

.btn-tertiary {
    background-color: #F3F4F6;
    color: var(--text-dark);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-tertiary:hover {
    background-color: #E5E7EB;
    transform: translateY(-1px);
}

/* 进度条样式 */
.progress-bar {
    height: 10px;
    border-radius: 5px;
    background-color: #F3F4F6;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-purple));
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* 统计卡片样式 */
.stat-card {
    border-radius: 16px;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 标签样式 */
.tag {
    background-color: #F3F4F6;
    color: var(--text-dark);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 标题样式 */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}